import service, {downPost} from "../utils/request";
export function downStudent(data) {
    return downPost({
        url: "/downloadStadentGrade",
        method: "post",
        data
    })
}

//  用户名登录
export function loginApi(data) {
    return service({
        url: "/admin/login",
        method: "post",
        data
    })
}
export function register(data) {
    return service({
        url: "/admin/register",
        method: "post",
        data
    })
}

//用户列表
export function userListApi(data) {
    return service({
        url: "/admin/userlist",
        method: "post",
        data
    })
}

//添加用户
export function userAddApi(data) {
    return service({
        url: "/admin/addUser",
        method: "post",
        data
    })
}

//删除用户
export function userDelApi(data) {
    return service({
        url: "/admin/delUser",
        method: "delete",
        data
    })
}

//修改用户
export function userEditApi(data) {
    return service({
        url: "/admin/setgoals",
        method: "put",
        data
    })
}